import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        component: () => import('../views/Home.vue')
    }, {
        path: '/home',
        component: () => import('../components/home/ViewHome.vue')
    }, {
        path: '/login',
        component: () => import('../views/Login.vue')
    },
    {
        path: '/listLibrary',
        component: () => import('../components/library/listLibrary.vue')
    },
    {
        path: '/notice',
        component: () => import('../components/notice/notice.vue')
    }, {
        path: '/database',
        component: () => import('../components/database/database.vue')
    }, {
        path: '/allUser',
        component: () => import('../components/user/allUser.vue')
    }, {
        path: '/noticeUser',
        component: () => import('../components/user/noticeUser.vue')
    },
    {
        path: '/return',
        component: () => import('../components/notice/return.vue')
    },
     {
        path: '/reserTime',
        component: () => import('../components/reser/reserTime.vue')
    },
    {
        path: '/listAdmin',
        component: () => import('../components/admin/listAdmin.vue')
    },
]
const router = new VueRouter({
    mode: "history",
    routes
})

export default router
